import 'package:member_center_sdk/results/base_member_result.dart';
import 'package:member_center_sdk/results/base_member_result.dart';

class Member extends BaseMemberResult {
  String nickName, email;

  Member({userName, avatarUrl, memberId, this.nickName, this.email})
      : super(userName: userName, avatarUrl: avatarUrl, memberId: memberId);

  Member.fromMap(Map<String, dynamic> map) {
    userName = map['UserName'];
    avatarUrl = map['AvatarUrl'];
    memberId = int.parse(map['MemberId'].toString());
    nickName = map['NickName'];
    email = map['Email'];
  }

  @override
  setJson(Map<String, dynamic> map) {
    nickName = map['nickName'];
    email = map['email'];
  }


}
